A function set holding testing functions. More...
Public Member Functions | |
| FunctionSet () | |
| ~FunctionSet () | |
| const std::function< void()> & | registerFunction (const char *name, const std::function< void()> &func) |
| nkLog::StringView | getFunctionName (unsigned int index) const |
| const std::function< void()> & | getFunction (unsigned int index) const |
| unsigned int | getSetSize () const |
A function set holding testing functions.
Mainly used internally to keep track of registered functions.
| nkDebug::FunctionSet::FunctionSet | ( | ) |
Default constructor.
| nkDebug::FunctionSet::~FunctionSet | ( | ) |
Destructor.
| const std::function<void ()>& nkDebug::FunctionSet::registerFunction | ( | const char * | name, |
| const std::function< void()> & | func | ||
| ) |
Register a new function into the set.
| name | The function name to attach. |
| func | The function to call. |
| nkLog::StringView nkDebug::FunctionSet::getFunctionName | ( | unsigned int | index | ) | const |
Allows to retrieve the name of a registered function at a given index.
| index | The index of the function to check for. |
| const std::function<void ()>& nkDebug::FunctionSet::getFunction | ( | unsigned int | index | ) | const |
Allows to retrieve a function at a given index.
| index | The index of the function to check for. |
| unsigned int nkDebug::FunctionSet::getSetSize | ( | ) | const |